package samfeng.erp.product.specification.convert;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import samfeng.erp.product.specification.controller.admin.vo.SpecificationCreateReqVO;
import samfeng.erp.product.specification.controller.admin.vo.SpecificationExcelVO;
import samfeng.erp.product.specification.controller.admin.vo.SpecificationRespVO;
import samfeng.erp.product.specification.controller.admin.vo.SpecificationUpdateReqVO;
import samfeng.erp.product.specification.dal.dataobject.SpecificationDO;

/**
 * 产品规格 Convert
 *
 * @author 芋道源码
 */
@Mapper
public interface SpecificationConvert {

    SpecificationConvert INSTANCE = Mappers.getMapper(SpecificationConvert.class);

    SpecificationDO convert(SpecificationCreateReqVO bean);

    SpecificationDO convert(SpecificationUpdateReqVO bean);

    SpecificationRespVO convert(SpecificationDO bean);

    List<SpecificationRespVO> convertList(List<SpecificationDO> list);

    PageResult<SpecificationRespVO> convertPage(PageResult<SpecificationDO> page);

    List<SpecificationExcelVO> convertList02(List<SpecificationDO> list);

}
